
import controller.ChangePieceListener;
import model.Piece;
import view.GUI;

public class Main {

	/**
	 * The main method for this program. Creates an initial piece to load and
	 * starts the GUI with the appropriate listeners.
	 * @param args No arguments required.
	 */
	public static void main(String[] args) {
		Piece initialPiece = Piece.createSamplePiece();

		GUI gui = new GUI();

		//Setup the GUI to show the initial piece.
		gui.setChangePieceListener(new ChangePieceListener(initialPiece, gui));

		gui.setVisible(true);
	}

}
